import axios from 'axios';

var instance = axios.create({
  headers: {'content-type': 'application/x-www-form-urlencoded'}
});

let base = 'http://localhost:8080/api/'; // 图灵机器人的接口
// 首页聊天列表
export const getDialog = params => {
  return instance.get(base + '/dialogue', {params: params});
};
// 用户信息
export const getUser = params => {
  return instance.get(base + '/user', {params: params});
};
// 图灵机器人web API V1.0 的接口定义http://www.tuling123.com/openapi/api
export const getRebotContent = params => {
  return instance.get('http://www.tuling123.com/openapi/api', {params: params});
}

